package com.airlines.crewassignment.service.scheduleAuthority.impl;

import com.airlines.base.service.base.impl.BaseServiceImpl;
import com.airlines.crewassignment.dao.ScheduleAuthorityMapper;
import com.airlines.crewassignment.entity.linkline.ScheduleAuthority;
import com.airlines.crewassignment.service.scheduleAuthority.ScheduleAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xxxx
 * @date 2018/6/19
 * @company xxxx Airlines
 * @description 机组排班授权
 */
@Service
public class ScheduleAuthorityServiceImpl extends BaseServiceImpl<ScheduleAuthority,Integer> implements ScheduleAuthorityService {
    @Autowired
    private ScheduleAuthorityMapper scheduleAuthorityMapper;
    @Autowired
    @Override
    public void setBaseMapper() {
        super.setBaseMapper(scheduleAuthorityMapper);
    }


    @Override
    public ScheduleAuthority selectByPCode(String pCode) {
        return scheduleAuthorityMapper.selectByPCode(pCode);
    }

}
